package mythread.demo001;

public class MyThread12_3Test_stop {
    public static void main(String[] args) {



        try {
            MyThread12_3 thread12 = new MyThread12_3();
            thread12.start();
            thread12.sleep(2000);
            thread12.interrupt();//并不是立即执行

        } catch (InterruptedException e) {
            System.out.println("main catch");
            e.printStackTrace();
        }
        System.out.println("end");

    }
}
